package com.deyuans.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.deyuans.domian.Credit;
import com.deyuans.dto.RiskDto;
import com.deyuans.mapper.CreditMapper;
import com.deyuans.service.CreditService;
import org.springframework.stereotype.Service;

@Service
public class CreditServiceImpl extends ServiceImpl<CreditMapper,Credit> implements CreditService{

public void add(RiskDto riskDto,Boolean is){
    Credit credit = new Credit();
    credit.setId(1);
    credit.setFicatParty("荣耀集团");
    credit.setUid(credit.getUid());
    credit.setContracted(1);
    credit.setContract(credit.getContract());
    if (is==true){
        this.save(credit);
    }
}
}
